package com.info.article.service.infoarticleservice.web;

import com.info.article.service.infoarticleservice.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class PersonWeb {
    @Autowired
    private PersonService p;
    @ResponseBody
    @RequestMapping
    public Map getP(){
        Map m =new HashMap<String,Object>();
        m.put("msg",p.getPerson());
        return m;
    }
}